package qreasymarket.movil;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.webkit.WebView;

public class PromocionesActivity extends Activity {

	private WebView webview;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.promociones);

		webview = (WebView) findViewById(R.id.webView1);
		webview.loadUrl("http://192.168.1.176:8080/QR-EasyMarket_Web/ho1.html");
		this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu1) {

		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menuprincipal, menu1);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		if (item.getItemId() == R.id.PromocionService) {
			startActivity(new Intent(PromocionesActivity.this,
					MenuCarrusel.class));
			return (true);
		}

		return (super.onOptionsItemSelected(item));
	}

}
